<template>
  <div class="goods-list">
    <goods-list-item v-for="(item,i) in goods" :key="i" :goods-item="item" >
    </goods-list-item>
  </div>
</template>

<script>
import GoodsListItem from './GoodsListItem'
export default {
  name: "GoodsList",
  props:{
    goods:{
      type:Array,
      default(){
        return[]
}
    }
  },
  components:{
    GoodsListItem
  },
  methods: {},
};
</script>

<style scoped>
 .goods-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: var(--color-background);

    padding: 2px;
  }</style>